package com.hgd.client.chart;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

/**
 * <p>
 * Java class for device complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="device">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="domain" type="{http://impl.hgd.com/}domain" minOccurs="0"/>
 *         &lt;element name="hardware" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="software" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="tasks" type="{http://impl.hgd.com/}task" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="dId" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="dIp" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="dName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="dType" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "device", propOrder = { "domain", "hardware", "software",
		"tasks", "dId", "dIp", "dName", "dType" })
public class Device {

	protected Domain domain;
	protected String hardware;
	protected String software;
	@XmlElement(nillable = true)
	protected List<Task> tasks;
	protected int dId;
	protected String dIp;
	protected String dName;
	protected int dType;

	/**
	 * Gets the value of the domain property.
	 * 
	 * @return possible object is {@link Domain }
	 * 
	 */
	public Domain getDomain() {
		return domain;
	}

	/**
	 * Sets the value of the domain property.
	 * 
	 * @param value
	 *            allowed object is {@link Domain }
	 * 
	 */
	public void setDomain(Domain value) {
		this.domain = value;
	}

	/**
	 * Gets the value of the hardware property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getHardware() {
		return hardware;
	}

	/**
	 * Sets the value of the hardware property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setHardware(String value) {
		this.hardware = value;
	}

	/**
	 * Gets the value of the software property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getSoftware() {
		return software;
	}

	/**
	 * Sets the value of the software property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setSoftware(String value) {
		this.software = value;
	}

	/**
	 * Gets the value of the tasks property.
	 * 
	 * <p>
	 * This accessor method returns a reference to the live list, not a
	 * snapshot. Therefore any modification you make to the returned list will
	 * be present inside the JAXB object. This is why there is not a
	 * <CODE>set</CODE> method for the tasks property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getTasks().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list {@link Task }
	 * 
	 * 
	 */
	public List<Task> getTasks() {
		if (tasks == null) {
			tasks = new ArrayList<Task>();
		}
		return this.tasks;
	}

	/**
	 * Gets the value of the dId property.
	 * 
	 */
	public int getDId() {
		return dId;
	}

	/**
	 * Sets the value of the dId property.
	 * 
	 */
	public void setDId(int value) {
		this.dId = value;
	}

	/**
	 * Gets the value of the dIp property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getDIp() {
		return dIp;
	}

	/**
	 * Sets the value of the dIp property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setDIp(String value) {
		this.dIp = value;
	}

	/**
	 * Gets the value of the dName property.
	 * 
	 * @return possible object is {@link String }
	 * 
	 */
	public String getDName() {
		return dName;
	}

	/**
	 * Sets the value of the dName property.
	 * 
	 * @param value
	 *            allowed object is {@link String }
	 * 
	 */
	public void setDName(String value) {
		this.dName = value;
	}

	/**
	 * Gets the value of the dType property.
	 * 
	 */
	public int getDType() {
		return dType;
	}

	/**
	 * Sets the value of the dType property.
	 * 
	 */
	public void setDType(int value) {
		this.dType = value;
	}

}
